package com.chen.wxchat.entity;

import com.chen.wxchat.tools.DateTool;

import java.util.ArrayList;
import java.util.List;


public class FriendCircle {
    private String circleId;
    private String circleSaid;
    private String circleCreateTime;
    private String imageList;
    private UserInfo userInfo;
    private String userId;
    private List<CircleImageList> circleImageList;

    public String getCircleId() {
        return circleId;
    }

    public void setCircleId(String circleId) {
        this.circleId = circleId;
    }

    public String getCircleSaid() {
        return circleSaid;
    }

    public void setCircleSaid(String circleSaid) {
        this.circleSaid = circleSaid;
    }

    public String getCircleCreateTime() {
        return circleCreateTime;
    }

    public void setCircleCreateTime(String circleCreateTime) {
        String[] circleTime = circleCreateTime.split(" ");

        this.circleCreateTime = circleTime[0];

    }

    public String getImageList() {
        return imageList;
    }

    public void setImageList(String imageList) {
        this.imageList = imageList;
        String[] images = imageList.split(",");
        List<CircleImageList> lists = new ArrayList<CircleImageList>();
        for (int i = 0; i<images.length;i++){
            CircleImageList circle = new CircleImageList();
            circle.setCircleImage(images[i]);
            lists.add(circle);
        }
        setCircleImageList(lists);
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<CircleImageList> getCircleImageList() {
        return circleImageList;
    }

    public void setCircleImageList(List<CircleImageList> circleImageList) {
        this.circleImageList = circleImageList;
    }
}
